//
//  playListView.m
//  XMLY
//
//  Created by lanou on 15/11/5.
//  Copyright © 2015年 曾杰. All rights reserved.
//

#import "playListView.h"
@implementation playListView

-(instancetype)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if (self) {
        
        _backGroundView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT/2-90)];
        _backGroundView.image = [UIImage imageNamed:@"playList"];
        _backGroundView.userInteractionEnabled = YES;
        [self addSubview:_backGroundView];
        
        
        _backButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _backButton.frame = CGRectMake(10, 10, 20, 20);
        [_backButton setBackgroundImage:[UIImage imageNamed:@"back"] forState:(UIControlStateNormal)];
        [self.backGroundView addSubview:_backButton];
        
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-100, 10, SCREEN_WIDTH-120, 20)];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        _nameLabel.textColor = [UIColor whiteColor];
        _nameLabel.font = [UIFont systemFontOfSize:15];
        [self.backGroundView addSubview:_nameLabel];
        
        
        _titleView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 60, SCREEN_WIDTH/4+20, SCREEN_WIDTH/4+20)];
        [self.backGroundView addSubview:_titleView];
        
        _singerView = [[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/4+40, 65, 30, 30)];
        _singerView.layer.cornerRadius = 15;
        _singerView.layer.masksToBounds = YES;
        [self.backGroundView addSubview:_singerView];
        
        _singerLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/4+40+40, 70,SCREEN_WIDTH/4*3-120, 20)];
        _singerLabel.textColor = [UIColor whiteColor];
        _singerLabel.font = [UIFont systemFontOfSize:15];;
        [self.backGroundView addSubview:_singerLabel];
        
        
        _introLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/4+40, 100, SCREEN_WIDTH-SCREEN_WIDTH/4-30, 20)];
        _introLabel.textColor = [UIColor lightGrayColor];
        _introLabel.font = [UIFont systemFontOfSize:15];
        [self.backGroundView addSubview:_introLabel];
        
        
        
        
        
        
    }
    return self;
}

@end
